import 'package:flutter_account_book/utils/db/db_helper.dart';
import 'package:get/get.dart';

import 'state.dart';

class PayLogic extends GetxController {
  PayState state = PayState();

  @override
  void onInit() {
    super.onInit();
    _loadData();
  }

  _loadData() async {
    state.list.value = await DbHelper.helper.payMethodDao.flowAll();
  }
}
